package com.pureut.system.service.impl;

import com.pureut.system.domain.dto.MaterialBomDetailDto;
import com.pureut.system.mapper.MaterialBomDetailMapper;
import com.pureut.system.service.MaterialBomDetailService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/***
 *
 * Author:C
 * Date:2023/01/09 17:11
 * @DESC
 */
@Service
public class MaterialBomDetailServiceImpl implements MaterialBomDetailService {

    @Resource
    MaterialBomDetailMapper materialBomDetailMapper;

    @Override
    public List<MaterialBomDetailDto> getDosageByMaterialId(Long bomId,int bomDetailType) {
        return materialBomDetailMapper.getDosage(bomId,bomDetailType);
    }
}
